package com.xc.common.object;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public class LayuiTableResponse<T> {
	private Integer code = Integer.valueOf(0);
	private String msg = "";
	private String id;
	private String type;
	private Long count;
	private Long curr;
	private JSONObject response;
	private List<T> data = new ArrayList<>();
	private List<T> data2;
	private List<T> content;
	public Integer getCode() {
		return this.code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return this.msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Long getCurr() {
		return curr;
	}

	public void setCurr(Long curr) {
		this.curr = curr;
	}

	public Long getCount() {
		return this.count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public JSONObject getResponse() {
		return this.response;
	}

	public void setResponse(JSONObject response) {
		this.response = response;
	}

	public List<T> getData() {
		return this.data;
	}

	public void setData(List<T> data) {
		if (data.size() == 0) {
			code = 201;
			this.msg = "无数据";
		}
		this.data = data;
	}

	public List<T> getData2() {
		return this.data2;
	}

	public void setData2(List<T> data2) {
		this.data2 = data2;
	}

	public List<T> getContent() {
		return content;
	}

	public void setContent(List<T> content) {
		this.content = content;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
}
